//
//  MPTabBar.m
//  MPOC
//
//  Created by DaVinci on 16/4/7.
//  Copyright © 2016年 DaVinci. All rights reserved.
//

#import "MPTabBar.h"
#import <objc/runtime.h>

@implementation MPTabBar

- (instancetype)initWithFrame:(CGRect)frame{

    if (self = [super initWithFrame:frame]) {
        
//        [self listVar];
    }
    return self;
}

- (void)awakeFromNib{

    [super awakeFromNib];
    

}

- (void)listVar
{
    unsigned int count;
    Ivar *ivar = class_copyIvarList([UITabBar class], &count);
    
    for (NSInteger i = 0; i<count; ++i) {
        
        Ivar var = ivar[i];
       
        const char *name = ivar_getName(var);
        
        NSLog(@"%s",name);
        
    }
//    NSLog(@"11");
}

- (void)layoutSubviews{
 
    [super layoutSubviews];
    
//    [self listVar];
    
    for (UIView *view in self.subviews) {
        NSLog(@"%@",[view class]);
    }
//    NSLog(@"%@",NSStringFromCGRect(self.bounds));
}
@end
